package us.codecraft.tinyioc.aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author yihua.huang@dianping.com
 */
public class TimerInterceptor implements MethodInterceptor {

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		long time = System.nanoTime();
//		System.out.println("Invocation of Method start!");
		//在这个方法的前后加上逻辑，就是方法前和方法后需要执行的逻辑
//		Object proceed = invocation.proceed();
//		System.out.println("Invocation of Method end!");
//		return proceed;
		return null;
	}
}
